<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="../static/css/bootstrap.min.css">
    <link rel="stylesheet" href="../static/css/my_log_register.css">
    <style type="text/css">
        /* 眼睛样式 */
        #eyes {
            width: 18px;
            position: absolute;
            top: 12px;
            right: 2.5rem;
            float: left;
        }
     </style>
</head>

<body>
    <div id="container" class="shadow p-3 mb-5 bg-white rounded">
        <div id="title" style="margin-bottom: 2rem;">
            <h1 style="text-align: center; padding-top: 1rem;">登陆</h1>
        </div>

        <form>
            <!-- 文本框 -->
            <div id="body_middle">
                <!-- 账号框 -->
                <div class="row">
                  <div class="col">
                      <center>
                          <input type="text" class="form-control" id="username" name="username" placeholder="用户名/手机号/邮箱" style="width: 50%; text-align: center;">
                        </center>
                    </div>
                </div>
                <!-- 密码框 -->
                <div class="row">
                    <div class="col">
                        <center>
                            <input type="password" class="form-control" id="password" name="password" placeholder="请输入密码" style="width: 50%; text-align: center">
                            <!-- 功能小眼睛 -->
                            <img src="../static/image/eye-slash.svg" alt="" id="eyes" style="margin-right: 6.6rem; margin-top: 0px; ">
                        </center>
                    </div>
                </div>
            </div>
            
            <!-- 辅助板块 -->
            <div>
                <div class="row">
                    <div class="col">
                        
                    </div>
                </div>
                <!-- 按钮组件 -->
                <div style="text-align: center;">
                    <center></center>
                    <button type="button" class="btn btn-outline-success" style="width: 14rem;">登录</button> 
                </div>
                <div style="margin-left: 2rem;">
                    <a href="../view/register.html">注册账号</a>
                </div>
            </div>
        </form>
    </div>
    
    <script src="../static/js/jquery-3.5.1.min.js"></script>
    <script src="../static/js/bootstrap.min.js"></script>
    <!-- 登录页输入框焦点逻辑 -->
    <script src="../static/js/login_input_focus.js"></script>
    <!-- 小眼睛——显示隐藏密码实现逻辑 -->
    <script src="../static/js/icon_click.js"></script>
  
    <!-- JQuery跳转代码 -->
    <script>
        $(document).ready(function(){
            $(".btn").click(function(){
                // window.location.href = "index.html"
                $(location).attr("href", "index.html")
            });
        });

    </script>
</body>
</html>